﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Aliphant.UI.Windows;

namespace Aliphant.UI
{
    public interface IWidget
    {
        void Init(Widget widget);

        /// <summary>
        /// 快捷按钮1提示文本
        /// </summary>
        string? QuickButton1Tip { get; }

        /// <summary>
        /// 快捷按钮2提示文本
        /// </summary>
        string? QuickButton2Tip { get; }

        /// <summary>
        /// 快捷按钮1图标
        /// </summary>
        string? QucikButton1Icon { get; }

        /// <summary>
        /// 快捷按钮2图标
        /// </summary>
        string? QucikButton2Icon { get; }

        /// <summary>
        /// 设置脚本路径
        /// </summary>
        /// <param name="scriptPath"></param>
        void SetScriptPath(string scriptPath);

        /// <summary>
        /// 快捷按钮1事件
        /// </summary>
        void QuickAction1();

        /// <summary>
        /// 快捷按钮2事件
        /// </summary>
        void QuickAction2();

        /// <summary>
        /// 关闭事件
        /// </summary>
        void Close();
    }
}
